﻿<?php $url_this =  "http://".$_SERVER ['HTTP_HOST']."/"?>
<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css('cake.generic');
		
		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
		
	  
	    echo "<script src='/mcouponMgr/jquery-mobile/jquery-1.6.4.min.js' type='text/javascript'></script>";
        echo "<script src='/mcouponMgr/jquery-mobile/jquery.mobile-1.0.min.js' type='text/javascript'></script>";	       
        echo "<link rel='stylesheet' href='/mcouponMgr/css/jquery.mobile.theme.css' />";		      
		echo "<link rel='stylesheet'  href='/mcouponMgr/css/jquery.mobile.structure.css' />";
		
	?>
<div class="shopimages index">
	<h2><?php echo __('Shopimages'); ?></h2>
	<ul>
		<li><?php echo $this->Html->link(__('New Shopimage'), array('action' => 'addimage')); ?></li>
	</ul>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id'); ?></th>
			<th><?php echo $this->Paginator->sort('ShopId'); ?></th>
			<th><?php echo $this->Paginator->sort('ImagePath'); ?></th>
			<th><?php echo $this->Paginator->sort('CreateTime'); ?></th>
			<th><?php echo $this->Paginator->sort('LastUpdateTime'); ?></th>
			<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
	foreach ($shopimages as $shopimage): ?>
	<tr>
		<td><?php echo h($shopimage['Shopimage']['id']); ?>&nbsp;</td>
		<td><?php echo h($shopimage['Shopimage']['ShopId']); ?>&nbsp;</td>
		<td><img  style="width:30%; height:30%" src="<?php echo $url_this?><?php echo h($shopimage['Shopimage']['ImagePath']); ?>" alt="<?php echo $url_this?><?php echo h($shopimage['Shopimage']['ImagePath']); ?>"/> &nbsp;</td>
		<td><?php echo h($shopimage['Shopimage']['CreateTime']); ?>&nbsp;</td>
		<td><?php echo h($shopimage['Shopimage']['LastUpdateTime']); ?>&nbsp;</td>
		<td class="actions">
			<!--<?php echo $this->Html->link(__('View'), array('action' => 'view', $shopimage['Shopimage']['id'])); ?>-->
			<?php echo $this->Html->link(__('Edit'), array('action' => 'setimage', $shopimage['Shopimage']['id'])); ?>
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $shopimage['Shopimage']['id']), null, __('Are you sure you want to delete # %s?', $shopimage['Shopimage']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>

	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
